class SubSystemA {
    public doOperationA(): void {
        console.log('子系统A');
    }
}

class SubSystemB {
    public doOperationB(): void {
        console.log('子系统B');
    }
}

class Facade {
    private subSystemA: SubSystemA
    private subSystemB: SubSystemB

    constructor() {
        this.subSystemA = new SubSystemA()
        this.subSystemB = new SubSystemB()
    }

    public doOperation(): void {
        this.subSystemA.doOperationA()
        this.subSystemB.doOperationB()
    }
}

const FacadeTest = (): void => {
    const facade:Facade = new Facade()
    facade.doOperation()
}

FacadeTest()
